package com.zhiche.lisa.bms.dao.model.quote;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 报价单明细
 * </p>
 *
 * @author liuanshun
 * @since 2019-02-18
 */
@TableName("lisa_quote_dtl")
public class QuoteDtl extends Model<QuoteDtl> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 主表id
     */
	@TableField("head_id")
	private Long headId;
    /**
     * 起运地
     */
	@TableField("start_addr")
	private String startAddr;
    /**
     * 起运市
     */
	@TableField("start_city")
	private String startCity;
    /**
     * 起运区
     */
	@TableField("start_county")
	private String startCounty;
    /**
     * 目的省
     */
	@TableField("end_province")
	private String endProvince;
    /**
     * 目的市
     */
	@TableField("end_city")
	private String endCity;
    /**
     * 目的区
     */
	@TableField("end_county")
	private String endCounty;
    /**
     * 目的地
     */
	@TableField("end_addr")
	private String endAddr;
    /**
     * 所属客户
     */
	private String client;
    /**
     * 运输类型（OTM）
     */
	@TableField("trans_type_name")
	private String transTypeName;
    /**
     * 车系名称
     */
	@TableField("vehicle_type_name")
	private String vehicleTypeName;
    /**
     * 报价单价
     */
	@TableField("quotation_price")
	private BigDecimal quotationPrice;
    /**
     * 报价公里数
     */
	@TableField("quotation_mileage")
	private BigDecimal quotationMileage;
    /**
     * 标准公单价
     */
	@TableField("standard_price")
	private BigDecimal standardPrice;
    /**
     * 标准公里数
     */
	@TableField("standard_mileage")
	private BigDecimal standardMileage;
    /**
     * 对应账款id
     */
	@TableField("fee_id")
	private Long feeId;
    /**
     * 溢价比
     */
	private BigDecimal premium;
    /**
     * OTM标准价id
     */
	@TableField("sta_price_id")
	private Long staPriceId;
    /**
     * 创建人
     */
	private Long creator;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 修改时间
     */
	@TableField("gmt_modify")
	private Date gmtModify;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getHeadId() {
		return headId;
	}

	public void setHeadId(Long headId) {
		this.headId = headId;
	}

	public String getStartAddr() {
		return startAddr;
	}

	public void setStartAddr(String startAddr) {
		this.startAddr = startAddr;
	}

	public String getStartCity() {
		return startCity;
	}

	public void setStartCity(String startCity) {
		this.startCity = startCity;
	}

	public String getStartCounty() {
		return startCounty;
	}

	public void setStartCounty(String startCounty) {
		this.startCounty = startCounty;
	}

	public String getEndProvince() {
		return endProvince;
	}

	public void setEndProvince(String endProvince) {
		this.endProvince = endProvince;
	}

	public String getEndCity() {
		return endCity;
	}

	public void setEndCity(String endCity) {
		this.endCity = endCity;
	}

	public String getEndCounty() {
		return endCounty;
	}

	public void setEndCounty(String endCounty) {
		this.endCounty = endCounty;
	}

	public String getEndAddr() {
		return endAddr;
	}

	public void setEndAddr(String endAddr) {
		this.endAddr = endAddr;
	}

	public String getClient() {
		return client;
	}

	public void setClient(String client) {
		this.client = client;
	}

	public String getTransTypeName() {
		return transTypeName;
	}

	public void setTransTypeName(String transTypeName) {
		this.transTypeName = transTypeName;
	}

	public String getVehicleTypeName() {
		return vehicleTypeName;
	}

	public void setVehicleTypeName(String vehicleTypeName) {
		this.vehicleTypeName = vehicleTypeName;
	}

	public BigDecimal getQuotationPrice() {
		return quotationPrice;
	}

	public void setQuotationPrice(BigDecimal quotationPrice) {
		this.quotationPrice = quotationPrice;
	}

	public BigDecimal getQuotationMileage() {
		return quotationMileage;
	}

	public void setQuotationMileage(BigDecimal quotationMileage) {
		this.quotationMileage = quotationMileage;
	}

	public BigDecimal getStandardPrice() {
		return standardPrice;
	}

	public void setStandardPrice(BigDecimal standardPrice) {
		this.standardPrice = standardPrice;
	}

	public BigDecimal getStandardMileage() {
		return standardMileage;
	}

	public void setStandardMileage(BigDecimal standardMileage) {
		this.standardMileage = standardMileage;
	}

	public Long getFeeId() {
		return feeId;
	}

	public void setFeeId(Long feeId) {
		this.feeId = feeId;
	}

	public BigDecimal getPremium() {
		return premium;
	}

	public void setPremium(BigDecimal premium) {
		this.premium = premium;
	}

	public Long getStaPriceId() {
		return staPriceId;
	}

	public void setStaPriceId(Long staPriceId) {
		this.staPriceId = staPriceId;
	}

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "QuoteDtl{" +
			", id=" + id +
			", headId=" + headId +
			", startAddr=" + startAddr +
			", startCity=" + startCity +
			", startCounty=" + startCounty +
			", endProvince=" + endProvince +
			", endCity=" + endCity +
			", endCounty=" + endCounty +
			", endAddr=" + endAddr +
			", client=" + client +
			", transTypeName=" + transTypeName +
			", vehicleTypeName=" + vehicleTypeName +
			", quotationPrice=" + quotationPrice +
			", quotationMileage=" + quotationMileage +
			", standardPrice=" + standardPrice +
			", standardMileage=" + standardMileage +
			", feeId=" + feeId +
			", premium=" + premium +
			", staPriceId=" + staPriceId +
			", creator=" + creator +
			", gmtCreate=" + gmtCreate +
			", gmtModify=" + gmtModify +
			"}";
	}
}
